<template>
	<view>
		<view class="padding">
			<rich-text :nodes="text"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: ""
			}
		},
		onLoad(e) {
			this.getData(e);
		},
		methods: {
			getData(e) {
				this.util.request('/goods/goodsInfo', {
					school_type: 0
				}).then(res => {
					uni.setNavigationBarTitle({
						title: e.name
					})
					if (e.id == 1) {
						this.text = res.user_information;
					} else {
						this.text = res.user_pay_information;
					}
				})
			}
		}
	}
</script>

<style>

</style>